import Vue from 'vue'
import Router from 'vue-router'
import index from './components/shopping/index'
import commonSymptoms from './components/commonSymptoms/commonSymptoms'
import herbal from './components/commonSymptoms/herbal'
import pairedTogether from './components/commonSymptoms/pairedTogether'
import nav from './components/shopping/nav'
import partnerone from './components/partner/partnerone'
import shoppingcart from './components/shoppingCart/shoppingCart'
import shopppingcartone from './components/shoppingCart/shoppingcartone'
import personalcenter from './components/personalcenter/personalcenter'
Vue.use(Router)
export default new Router({
  mode:"history",
  routes: [
    {
      path:'/',
      name:'index',
      component:index
    },
    {
      path: '/home/pairedTogether',
      name: 'pairedTogether',
      meta:{index:0},
      component: pairedTogether
    },
    // 顶部
    {
      path:'/home/index',
      name:'index',
      meta:{index:1},
      component:index
    },
    // 常见病症
    {
      path:'/home/nav',
      name:'nav',
      meta:{index:2},
      component:nav
    },
    //合伙人一
    {
      path:'/home/partnerone',
      name:'partnerone',
      meta:{index:3},
      component:partnerone
    },
    {
      path:'/home/commonSymptoms',
      name:'commonSymptoms',
      meta:{index:4},
      component:commonSymptoms
    },
    //智能药铺
    {
      path:'/home/herbal',
      name:'herbal',
      meta:{index:5},
      component:herbal
    },
    // 单人伙拼
    {
      path:'/home/pairedTogether',
      name:'pairedTogether',
      meta:{index:6},
      component:pairedTogether
    },
    //购物车
    {
      path:'/home/shoppingcart',
      name:'shoppingcart',
      meta:{index:7},
      component:shoppingcart
    },
    {
      path:'/home/shoppingcartone',
      name:"shoppingcartone",
      meta:{index:8},
      component:shopppingcartone
    },
    // 个人中心
    {
      path:'/home/personalcenter',
      name:"personalcenter",
      meta:{index:9},
      component:personalcenter
    }
  ]
})
